import request from "@/utils/request";
import type { User } from "@/model";
//查询商品分类
export function getCategoryList() {
  return request.get("/home/category/list");
}
export function getGoodsList() {
  return request.get("/home/goods/list");
}
export function login(data: User) {
  return request.post("/home/login", data);
}
export function getUser() {
  return request.get("/home/user");
}
